package my.guojian.jdbc.bean;

import java.sql.Connection;

public class ConnectionBean {
	private Connection con;
	private boolean busy;
	private String typeName;

	public ConnectionBean(Connection con, String typeName) {
		this.con = con;
		this.busy = false;
		this.typeName = typeName;
	}

	public ConnectionBean(Connection con, boolean busy, String typeName) {
		this.con = con;
		this.busy = busy;
		this.typeName = typeName;
	}

	public Connection getCon() {
		return con;
	}

	public void setCon(Connection con) {
		this.con = con;
	}

	public boolean isBusy() {
		return busy;
	}

	public void setBusy(boolean busy) {
		this.busy = busy;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	@Override
	public String toString() {
		return "ConnectionBean [con=" + con + ", busy=" + busy + ", typeName=" + typeName + "]";
	}

}
